package com.foreknow.protals.service;

import com.foreknow.protals.mbg.model.UmsAdmin;
import com.foreknow.protals.mbg.model.UmsPermission;

import java.util.List;

public interface UmsAdminService {
    /**
     * 注册
     * @param umsAdminDto
     * @return
     */
    public UmsAdmin register(UmsAdmin umsAdminDto);

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    public String login(String username,String password);

    /**
     * 根据用户获取到后台管理员的信息
     * @param username
     * @return
     */
    public UmsAdmin getAdminByUsername(String username);

    /**
     * 获取用户所有的权限
     * @param adminId
     * @return
     */
    public List<UmsPermission> getPermissionList(Long adminId);
}
